package jeopardy.common.protocol.game.play;

import java.io.Serializable;
/*
 * This class is used by the server to communicate with the client
 * to indicate the end of a round.  
 * 
 * Contains:
 * 1) The question that was just played
 * 2) The correct answer
 * 3) The player who answered it correctly
 * 4) The number of points the question was worth
 * 5) The time lapsed before receiving the correct answer
 * 
 */
public class QuestionAnswerMsg implements Serializable{

	private static final long serialVersionUID = 98349828L;
	
	private String question;
	private String answer;
	private int points;
	private String winner;
	private long timeMillis;
	
	public QuestionAnswerMsg(String question, String answer, String winner, int points, long timeMillis) {
		this.question = question;
		this.answer = answer;
		this.points = points;
		this.timeMillis = timeMillis;
		this.winner = winner;
	}

	public String getQuestion() {
		return question;
	}

	public String getAnswer() {
		return answer;
	}

	public int getPoints() {
		return points;
	}

	public String getWinner() {
		return winner;
	}

	public long getTimeMillis() {
		return timeMillis;
	}
}